package com.jian.java.config;

import com.jian.java.bean.Jian;
import com.jian.java.bean.Person;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Jiange
 * @create 2021-08-04-16:54
 */
@Configuration(proxyBeanMethods = false)
public class MyConfig {
    @Bean
    public Person person(){
        return new Person();
    }

    @Bean
    public Jian jian(Person person){
        Jian jian = new Jian();
        jian.setPerson(person);
        return jian;
    }
}
